﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.SafetyManagementEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/3/13 14:59:54
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_PotentialAdvice", new string[] { "Pa_ID" })]
    public class ScmPotentialadviceInfo : BaseEntity
    {
        public ScmPotentialadviceInfo()
        {

        }
        
        
        private string _paId;
        /// <summary>
        /// 主键
        /// </summary>
        [ColumnMap("Pa_ID", System.Data.DbType.String)]
        public string Pa_ID
        {
            get {return _paId;}
            set
            {
                if (object.Equals(this._paId, value) != true)
                {
                    this._paId = value;
                    this.RaisePropertyChanged("Pa_ID");
                }
            }
        }
        
        
        private int _paUserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Pa_UserID", System.Data.DbType.Int32)]
        public int Pa_UserID
        {
            get {return _paUserid;}
            set
            {
                if (object.Equals(this._paUserid, value) != true)
                {
                    this._paUserid = value;
                    this.RaisePropertyChanged("Pa_UserID");
                }
            }
        }
        
        
        private string _paUsername;
        /// <summary>
        /// 操作人名称
        /// </summary>
        [ColumnMap("Pa_UserName", System.Data.DbType.String)]
        public string Pa_UserName
        {
            get {return _paUsername;}
            set
            {
                if (object.Equals(this._paUsername, value) != true)
                {
                    this._paUsername = value;
                    this.RaisePropertyChanged("Pa_UserName");
                }
            }
        }
        
        
        private DateTime _paTime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("Pa_Time", System.Data.DbType.DateTime)]
        public DateTime Pa_Time
        {
            get {return _paTime;}
            set
            {
                if (object.Equals(this._paTime, value) != true)
                {
                    this._paTime = value;
                    this.RaisePropertyChanged("Pa_Time");
                }
            }
        }
        
        
        private string _paSection;
        /// <summary>
        /// 合同段
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(100, ErrorMessage = "字符长度超出范围")]
        [ExcelImportValidation("合同段", 1, false, "合同段不能为空值", "")]
        [ColumnMap("Pa_Section", System.Data.DbType.String)]
        public string Pa_Section
        {
            get {return _paSection;}
            set
            {
                if (object.Equals(this._paSection, value) != true)
                {
                    this._paSection = value;
                    this.RaisePropertyChanged("Pa_Section");
                }
            }
        }
        
        
        private int _paUnitid;
        /// <summary>
        /// 施工单位ID
        /// </summary>
        [ColumnMap("Pa_UnitID", System.Data.DbType.Int32)]
        public int Pa_UnitID
        {
            get {return _paUnitid;}
            set
            {
                if (object.Equals(this._paUnitid, value) != true)
                {
                    this._paUnitid = value;
                    this.RaisePropertyChanged("Pa_UnitID");
                }
            }
        }
        
        
        private string _paUnitname;
        /// <summary>
        /// 施工单位名称
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(100, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("Pa_UnitName", System.Data.DbType.String)]
        public string Pa_UnitName
        {
            get {return _paUnitname;}
            set
            {
                if (object.Equals(this._paUnitname, value) != true)
                {
                    this._paUnitname = value;
                    this.RaisePropertyChanged("Pa_UnitName");
                }
            }
        }
        
        
        private DateTime? _paDate;
        /// <summary>
        /// 日期
        /// </summary>
        [ExcelImportValidation("日期", 2)]
        [ColumnMap("Pa_Date", System.Data.DbType.DateTime)]
        public DateTime? Pa_Date
        {
            get {return _paDate;}
            set
            {
                if (object.Equals(this._paDate, value) != true)
                {
                    this._paDate = value;
                    this.RaisePropertyChanged("Pa_Date");
                }
            }
        }
        
        
        private string _paNumber;
        /// <summary>
        /// 编号
        /// </summary>
        [ExcelImportValidation("编号", 3)]
        [ColumnMap("Pa_Number", System.Data.DbType.String)]
        public string Pa_Number
        {
            get {return _paNumber;}
            set
            {
                if (object.Equals(this._paNumber, value) != true)
                {
                    this._paNumber = value;
                    this.RaisePropertyChanged("Pa_Number");
                }
            }
        }
        
        
        private string _paLocation;
        /// <summary>
        /// 检查地点
        /// </summary>
        [ExcelImportValidation("检查地点", 4)]
        [ColumnMap("Pa_Location", System.Data.DbType.String)]
        public string Pa_Location
        {
            get {return _paLocation;}
            set
            {
                if (object.Equals(this._paLocation, value) != true)
                {
                    this._paLocation = value;
                    this.RaisePropertyChanged("Pa_Location");
                }
            }
        }
        
        
        private string _paProblem;
        /// <summary>
        /// 安全隐患问题
        /// </summary>
        [ExcelImportValidation("安全隐患",5)]
        [ColumnMap("Pa_Problem", System.Data.DbType.String)]
        public string Pa_Problem
        {
            get {return _paProblem;}
            set
            {
                if (object.Equals(this._paProblem, value) != true)
                {
                    this._paProblem = value;
                    this.RaisePropertyChanged("Pa_Problem");
                }
            }
        }
        
        
        private bool _paIscheck;
        /// <summary>
        /// 监理是否审核回复
        /// </summary>
       [ExcelImportValidation("监理审核回复（是/否）",6)]
        [ColumnMap("Pa_IsCheck", System.Data.DbType.Boolean)]
        public bool Pa_IsCheck
        {
            get {return _paIscheck;}
            set
            {
                if (object.Equals(this._paIscheck, value) != true)
                {
                    this._paIscheck = value;
                    this.RaisePropertyChanged("Pa_IsCheck");
                }
            }
        }
        
        
        private DateTime? _paReplydate;
        /// <summary>
        /// 回复日期
        /// </summary>
       [ExcelImportValidation("回复日期",7)]
        [ColumnMap("Pa_ReplyDate", System.Data.DbType.DateTime)]
        public DateTime? Pa_ReplyDate
        {
            get {return _paReplydate;}
            set
            {
                if (object.Equals(this._paReplydate, value) != true)
                {
                    this._paReplydate = value;
                    this.RaisePropertyChanged("Pa_ReplyDate");
                }
            }
        }
        
        
        private string _paCorrect;
        /// <summary>
        /// 整改情况
        /// </summary>
       [ExcelImportValidation("整改情况", 8)]
        [ColumnMap("Pa_Correct", System.Data.DbType.String)]
        public string Pa_Correct
        {
            get {return _paCorrect;}
            set
            {
                if (object.Equals(this._paCorrect, value) != true)
                {
                    this._paCorrect = value;
                    this.RaisePropertyChanged("Pa_Correct");
                }
            }
        }
        
        
        private string _paRemark;
        /// <summary>
        /// 备注
        /// </summary>
       [ExcelImportValidation("备注",9)]
        [ColumnMap("Pa_Remark", System.Data.DbType.String)]
        public string Pa_Remark
        {
            get {return _paRemark;}
            set
            {
                if (object.Equals(this._paRemark, value) != true)
                {
                    this._paRemark = value;
                    this.RaisePropertyChanged("Pa_Remark");
                }
            }
        }
        
        
        private byte[] _paTimestamp;
        /// <summary>
        /// 时间戳
        /// </summary>
        [ColumnMap("Pa_TimeStamp", System.Data.DbType.Binary)]
        public byte[] Pa_TimeStamp
        {
            get {return _paTimestamp;}
            set
            {
                if (object.Equals(this._paTimestamp, value) != true)
                {
                    this._paTimestamp = value;
                    this.RaisePropertyChanged("Pa_TimeStamp");
                }
            }
        }
        
        
    }
}



